package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"user-mgmt-xy/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "post:Login")
	beego.Router("/list", &controllers.UserController{}, "get:List")
	beego.Router("/roleadd", &controllers.UserController{}, "post:RoleAdd")
	beego.Router("/useradd", &controllers.UserController{}, "post:UserAdd")
	beego.Router("/userlist", &controllers.UserController{}, "get:UserList")
	beego.Router("/userdel", &controllers.UserController{}, "get:UserDel")

}
